package cz.cvut.manatee.shared.concordance;

import java.io.Serializable;

public class CollectedSearchParameters extends CollectedParameters implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private String corpusName;
	private CollectedSimpleOrCqlParameters simpleOrCqlParam;

	private CollectedFilterParameters[] filters = null;
	private CollectedSortParameters[] sorts = null;
	private CollectedSampleParameters[] samples = null;

	public CollectedSearchParameters(){
		
	}

	public CollectedSearchParameters(String corpus_name, CollectedSimpleOrCqlParameters sorc){
		this.corpusName = corpus_name;
		this.simpleOrCqlParam = sorc;
	}

	public CollectedSearchParameters(String corpus_name, CollectedSimpleOrCqlParameters sorc, CollectedFilterParameters[] filters, CollectedSortParameters[] sorts, CollectedSampleParameters[] samples){
		this(corpus_name, sorc);
		this.filters = filters;
		this.sorts = sorts;
		this.samples = samples;
	}

	public String getCorpusName(){
		return corpusName;
	}

	public CollectedSimpleOrCqlParameters getSimpleOrCqlParameters(){
		return simpleOrCqlParam;
	}

	public CollectedFilterParameters[] getFilters(){
		return filters;
	}

	public CollectedSortParameters[] getSorts(){
		return sorts;
	}

	public CollectedSampleParameters[] getSamples(){
		return samples;
	}
	
}
